<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<title>信息管理系统</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link href="/style/basic_layout.css" rel="stylesheet" type="text/css">
	<link href="/style/common_style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="/js/jquery/jquery.js"></script>
	<script type="text/javascript" src="/js/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
	<script type="text/javascript" src="/js/plugins/ajaxForm/jQueryForm.js"></script>
	<script type="text/javascript" src="/js/commonAll.js"></script>
	<script type="text/javascript" src="/js/system/systemmenu.js"></script>
	<script>
        $(function () {
            //把表单提交方式改成ajax提交
            //只要type类型是submit的时候,只要点击submit的按钮,就会提交表单
            $("#editForm").ajaxForm(function (data) {//在点击submit按钮提交表单的时候,发送ajax请求,然后弹出artDialog框,点击确定返回list.do
                showDialog("操作成功",function () {
                    location.href = "/systemmenu/list.do?parentId=${parent.id}";
                },true);
            });
        })
	</script>
</head>
<body>
<form name="editForm"  action="/systemmenu/saveOrUpdate.do" method="post" id="editForm">
	<input type="hidden" name="id" value="${entity.id}">
	<div id="container">
		<div id="nav_links">
			<span style="color: #1A5CC6;">菜单编辑</span>
			<div id="page_close">
				<a>
					<img src="/images/common/page_close.png" width="20" height="20" style="vertical-align: text-top;"/>
				</a>
			</div>
		</div>
		<div class="ui_content">
			<table cellspacing="0" cellpadding="0" width="100%" align="left" border="0">
				<tr>
					<td class="ui_text_rt" width="140">父菜单</td>
					<td class="ui_text_lt">
						<input value="${parent.name}" class="ui_input_txt02" readonly/>
						<%--父菜单ID--%>
						<input type="hidden" name="parent.id" value="${parent.id}"/>
					</td>
				</tr>

				<tr>
					<td class="ui_text_rt" width="140">菜单名称</td>
					<td class="ui_text_lt">
						<input name="name" value="${entity.name}" class="ui_input_txt02"/>

					</td>
				</tr>

				<tr>
					<td class="ui_text_rt" width="140">菜单编码</td>
					<td class="ui_text_lt">
						<input name="sn" value="${entity.sn}" class="ui_input_txt02"/>
					</td>
				</tr>

				<tr>
					<td class="ui_text_rt" width="140">URL</td>
					<td class="ui_text_lt">
						<input name="url" value="${entity.url}" class="ui_input_txt02"/>
					</td>
				</tr>




				<tr>
					<td>&nbsp;</td>
					<td class="ui_text_lt">
						&nbsp;<input type="submit" value="确定保存" class="ui_input_btn01"/>
						&nbsp;<input id="cancelbutton" type="button" value="重置" class="ui_input_btn01"/>
					</td>
				</tr>
			</table>
		</div>
	</div>
</form>
</body>
</html>